#ifndef CAFFEINE_UTILITY_STRING_HPP
#define CAFFEINE_UTILITY_STRING_HPP

#include <sstream>
#include <string>

namespace Utility
{
	namespace String
	{
		template< typename Type >
		Type ConvertTo( const std::string &str )
		{
			Type retVal;

			std::stringstream stream;
			stream << str;
			stream >> retVal;

			return retVal;
		}

		template< typename Type >
		std::string ConvertFrom( const Type &val )
		{
			std::stringstream stream;
			stream << val;

			return stream.str();
		}
	}
}

#endif //CAFFEINE_UTILITY_STRING_HPP